package ModelLayer;
import java.util.ArrayList;

/**
 * Write a description of class DVD here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class DVD
{
    // instance variables - replace the example below with your own
    private int id;
    private String title;
    private String artist;
    private String releaseDate;
    private ArrayList<Sample> samplesOfDvd;
    
    public DVD(int id, String title, String artist, String releaseDate)
    {
        this.id = id;
        this.title = title;
        this.artist = artist;
        this.releaseDate = releaseDate;
        samplesOfDvd = new ArrayList<Sample>();
    }
    
    public void addSample(Sample newSample)
    {
        samplesOfDvd.add(newSample);
    }
    
    
    
    /**
     * this method set a object of Sample to the specific dvd object.
     * @param sample object of Sample
     */
    
    public void setId(int id)
    {
        this.id = id;
    }

    public int getId()
    {
        return id;
    }
    
    public void setTitle(String title)
    {
        this.title = title;
    }

    public String getTitle()
    {
        return title;
    }
    
    public void setArtist(String artist)
    {
        this.artist = artist;
    }

    public String getArtist()
    {
        return artist;
    }
    
    public void setReleaseDate(String releaseDate)
    {
        this.releaseDate = releaseDate;
    }

    public String getReleaseDate()
    {
        return releaseDate;
    }
}
